const path = require('path')
let proxyObj = {
  // target: 'http://devapp.topcheer.xyz:8838',
  target: 'http://192.168.10.11:8080',
  changeOrigin: true,
  pathRewrite: {}
}

module.exports = {
  lintOnSave: false,
  devServer: {
    disableHostCheck: true,
    proxy: {
      // '/api/lmp': proxyObj
      '/': proxyObj
    }
  },
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.resolve(__dirname, './src/assets/css/common.less') // 引入全局样式变量
      ]
    }
  }
}
